package com.txunda.zhuohired.adapter.manage.home;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import com.lidroid.xutils.ViewUtils;
import com.txunda.zhuohired.R;

/**
 * 创建人： Txd_Cjh
 * 创建时间： 2018/3/13 13:05
 * 功能描述：公司福利adapter
 * 联系方式：jiahuanchen@126.com
 */

public class CompanyWelfareAdapter extends BaseAdapter {
    private Context context;
    private ViewHolder holder;

    public CompanyWelfareAdapter(Context context) {
        this.context = context;
    }

    @Override
    public int getCount() {
        return 5;
    }

    @Override
    public Object getItem(int i) {
        return null;
    }

    @Override
    public long getItemId(int i) {
        return i;
    }

    @Override
    public View getView(int i, View view, ViewGroup viewGroup) {
        if (view == null) {
            view = LayoutInflater.from(context).inflate(R.layout.item_company_welfare, null);
            holder = new ViewHolder();
            view.setTag(holder);
            ViewUtils.inject(holder, view);
        } else {
            holder = (ViewHolder) view.getTag();
        }
        return view;
    }

    class ViewHolder {

    }
}
